package com.cmc.cloud.cmclink.doc.api.document.rep;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * 订舱拆分合并记录表   Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
public class SoSplitCombineBaseDto {

    @Schema(description = "操作编号  OPERATION20250515093623", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "操作编号  OPERATION20250515093623不能为空")
    @Length(max = 30, message = "操作编号  OPERATION20250515093623支持最大长度{max}")
    private String operationNo;

    @Schema(description = "提单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "提单号不能为空")
    @Length(max = 50, message = "提单号支持最大长度{max}")
    private String blNo;

    @Schema(description = "审批状态 PENDING待处理 APPROVED已批准 REJECTED已拒绝", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotBlank(message = "审批状态 PENDING待处理 APPROVED已批准 REJECTED已拒绝不能为空")
    @Length(max = 20, message = "审批状态 PENDING待处理 APPROVED已批准 REJECTED已拒绝支持最大长度{max}")
    private String approveStatus;

    @Schema(description = "操作类型 拆分 split 合并 combine 更正 change", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotBlank(message = "操作类型 拆分 split 合并 combine不能为空")
    @Length(max = 20, message = "操作类型 拆分 split 合并 combine支持最大长度{max}")
    private String operationType;

    @Schema(description = "申请人", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "申请人不能为空")
    @Length(max = 64, message = "申请人支持最大长度{max}")
    private String applyUser;

    @Schema(description = "申请时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime applyTime;

    @Schema(description = "申请时间格式化结果", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String applyTimeString;

    @Schema(description = "审批人")
    @Length(max = 64, message = "审批人支持最大长度{max}")
    private String approveUser;

    @Schema(description = "审批时间")
    private LocalDateTime approveTime;

    @Schema(description = "审批时间格式化结果", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String approveTimeString;

    @Schema(description = "网厅先加 备注")
    private String remark;

}
